package com.uplooking.constant;

import java.util.Map;

public interface CustConstants {
	
	String CondName = "gname";
	String CondType = "gtype";
	String CondStatus = "gstatus";
	
	int BuyOrderStatus = 501;
	int PayOrderStatus = 502;
	int DownOrderStatus = 503;
	
	long OrderExpire = 1000*60*30;
	
	public static Map<String,Object> UpdateCustSuccess(){
		return CommConstants.RESULT(200, "操作已经完成 需要重新登录后才能更新");
	}
	
	public static Map<String,Object> AddShopCarSuccess(){
		return CommConstants.RESULT(200, "成功添加商品到购物车");
	}
	
	public static Map<String,Object> DelShopCarSuccess(){
		return CommConstants.RESULT(200, "成功将商品移除购物车");
	}

	public static Map<String,Object> GoodNotExistsShopCar(){
		return CommConstants.RESULT(802, "购物车中不存在该商品");
	}
	
	public static Map<String,Object> GoodExistsShopCar(){
		return CommConstants.RESULT(803, "购物车中已经存在该商品");
	}
	
	public static Map<String,Object> AddAddrSuccess(){
		return CommConstants.RESULT(200, "成功添加收货地址");
	}
	
	public static Map<String,Object> DelAddrSuccess(){
		return CommConstants.RESULT(200, "成功删除收货地址");
	}
	
	public static Map<String,Object> AddrNotExists(){
		return CommConstants.RESULT(804, "收货地址信息不存在");
	}
	
	public static Map<String,Object> DefAddrSuccess(){
		return CommConstants.RESULT(200, "成功设置默认收货地址");
	}
	
	public static Map<String,Object> LockGoodError(){
		return CommConstants.RESULT(801, "网络异常 请重试");
	}
	
	public static Map<String,Object> GoodNotExist(){
		return CommConstants.RESULT(805, "商品不存在");
	}
	
	public static Map<String,Object> GoodIsDown(){
		return CommConstants.RESULT(806, "商品已经下架");
	}
	
	public static Map<String,Object> GoodNotEnough(){
		return CommConstants.RESULT(807, "商品已经脱销");
	}
	
	public static Map<String,Object> BuyOrderSuccess(){
		return CommConstants.RESULT(200, "购买商品成功 请及时付款 30分钟后未付款自动退还");
	}
	
	public static Map<String,Object> CancelOrderSuccess(){
		return CommConstants.RESULT(200, "订单撤销成功");
	}
	
	public static Map<String,Object> PayForOrderSuccess(){
		return CommConstants.RESULT(200, "支付成功 等待商家发货");
	}
}
